package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import com.zzyl.nursing.domain.CheckOutFeeDetail;

/**
 * 退住费用明细Mapper接口
 * 
 * @author Zhy
 * @date 2025-07-13
 */
@Mapper
public interface CheckOutFeeDetailMapper extends BaseMapper<CheckOutFeeDetail>
{
    /**
     * 查询退住费用明细
     * 
     * @param id 退住费用明细主键
     * @return 退住费用明细
     */
    public CheckOutFeeDetail selectCheckOutFeeDetailById(Long id);

    /**
     * 查询退住费用明细列表
     * 
     * @param checkOutFeeDetail 退住费用明细
     * @return 退住费用明细集合
     */
    public List<CheckOutFeeDetail> selectCheckOutFeeDetailList(CheckOutFeeDetail checkOutFeeDetail);

    /**
     * 新增退住费用明细
     * 
     * @param checkOutFeeDetail 退住费用明细
     * @return 结果
     */
    public int insertCheckOutFeeDetail(CheckOutFeeDetail checkOutFeeDetail);

    /**
     * 修改退住费用明细
     * 
     * @param checkOutFeeDetail 退住费用明细
     * @return 结果
     */
    public int updateCheckOutFeeDetail(CheckOutFeeDetail checkOutFeeDetail);

    /**
     * 删除退住费用明细
     * 
     * @param id 退住费用明细主键
     * @return 结果
     */
    public int deleteCheckOutFeeDetailById(Long id);

    /**
     * 批量删除退住费用明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCheckOutFeeDetailByIds(Long[] ids);

    /**
     * 根据退住记录ID查询费用明细列表
     * 
     * @param checkOutId 退住记录ID
     * @return 费用明细列表
     */
    public List<CheckOutFeeDetail> selectFeeDetailByCheckOutId(Long checkOutId);

    /**
     * 根据退住记录ID删除费用明细
     * 
     * @param checkOutId 退住记录ID
     * @return 结果
     */
    public int deleteByCheckOutId(Long checkOutId);
} 